/**
 * Created by root on 17-8-6.
 */
var logger = require('../../config/log4js');
var reptileService = require('../service/reptileService');
var recordService = require('../service/recordService');

module.exports = {

    queryReptile : async function(req, res, next) {
        await recordService.addRecord({request : req.url, clientIP : req.ip, createDate : new Date()}, function (result) {});
        var result = await reptileService.queryReptile(20, function (result) {});
        res.header('X-Frame-Options','deny');
        res.render('index', {list : result});

    }

};